package com.blb.generator.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.generator.entity.Staff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blb.generator.entity.dto.StaffDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yl
 * @since 2022-02-21
 */
@Repository
//@Mapper
public interface StaffMapper extends BaseMapper<Staff> {
    StaffDto getStaffDtoById(Long id);
    List<StaffDto> getStaffDtoByPage(Page<StaffDto> page);
    List<StaffDto> findStaffDto(Page<StaffDto> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}
